<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.Master" CodeBehind="Inbox.aspx.cs" Inherits="ProjektZespolowy.Mail.Inbox" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
            <asp:Label ID="lHeader1" runat="server" Text=""></asp:Label><br />
            <asp:UpdatePanel id="UpdatePanel1" runat="server">
                <contenttemplate>
<asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None"
						Width="95%" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"
						AutoGenerateColumns="False" OnRowDeleting="GridView1_RowDeleting" >
						<FooterStyle BackColor="IndianRed" Font-Bold="True" ForeColor="White" />
						<RowStyle BackColor="MistyRose" Font-Bold="false" Font-Size="Small" ForeColor="#333333"
							Height="25px" />
						<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
						<PagerStyle BackColor="IndianRed" ForeColor="White" Font-Bold="True" HorizontalAlign="Center" />
						<HeaderStyle BackColor="IndianRed" Font-Bold="True" ForeColor="White" />
						<AlternatingRowStyle BackColor="White" Height="25px" />
						<Columns>
							<asp:TemplateField>
								<HeaderTemplate>
									Od
								</HeaderTemplate>
								<ItemTemplate>
									<asp:HyperLink ID="hlFrom" runat="server" NavigateUrl='<%#"ShowPrifile.aspx?ID=" + Eval("id_user")  %>'
										Text='<%#Eval("login")  %>' />
								</ItemTemplate>
							</asp:TemplateField>
						
							<asp:TemplateField>
								<HeaderTemplate>
									Temat
								</HeaderTemplate>
								<ItemTemplate>
									<asp:HyperLink ID="hlTopic1" runat="server" NavigateUrl='<%#"CVMessage.aspx?MsgID=" + Eval("id") %>'
										Text='<%#Eval("topic")  %>'   OnDataBinding="BoldNewMsg"/>
								</ItemTemplate>
							</asp:TemplateField>
					
					        <asp:TemplateField>
								<HeaderTemplate>
									Data
								</HeaderTemplate>
								<ItemTemplate>
									<asp:Label ID="lDate1" runat="server" Text='<%#Eval("date")  %>' />
								</ItemTemplate>
							</asp:TemplateField>
						<asp:CommandField SelectText="Usun" DeleteText="Usun" ShowDeleteButton="True" />
						
						</Columns>
					</asp:GridView>
</contenttemplate>
            </asp:UpdatePanel>
</asp:Content>
